//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Architects','Franklin Music Hall','Philadelphia, PA','Thursday','5/9/2024','8:30 PM','6130310','Architects-5-9-2024'],['Echo and the Bunnymen','Franklin Music Hall','Philadelphia, PA','Sunday','5/19/2024','8:00 PM','6131833','Echo-and-the-Bunnymen-5-19-2024'],['The Amity Affliction','Franklin Music Hall','Philadelphia, PA','Sunday','5/26/2024','6:30 PM','6231999','The-Amity-Affliction-5-26-2024'],['Sapphic Factory: Queer Joy Party','Ophelia's Electric Soapbox','Denver, CO','Saturday','6/1/2024','9:00 PM','6362165','Sapphic-Factory--Queer-Joy-Party-6-1-2024'],['Knocked Loose, Show Me The Body, Loathe & Speed','Franklin Music Hall','Philadelphia, PA','Monday','6/3/2024','7:15 PM','6241732','Knocked-Loose--Show-Me-The-Body--Loathe---Speed-6-3-2024'],['Leo Skepi','Franklin Music Hall','Philadelphia, PA','Friday','6/7/2024','8:30 PM','6314617','Leo-Skepi-6-7-2024'],['Microwave','Franklin Music Hall','Philadelphia, PA','Saturday','6/8/2024','7:00 PM','6250800','Microwave-6-8-2024'],['Future Islands','Franklin Music Hall','Philadelphia, PA','Friday','6/21/2024','8:30 PM','6241713','Future-Islands-6-21-2024'],['Hiatus Kaiyote','Franklin Music Hall','Philadelphia, PA','Saturday','6/29/2024','8:30 PM','6331299','Hiatus-Kaiyote-6-29-2024'],['Idobi Summer School','Franklin Music Hall','Philadelphia, PA','Thursday','7/25/2024','6:30 PM','6354886','Idobi-Summer-School-7-25-2024'],['The Japanese House','Franklin Music Hall','Philadelphia, PA','Friday','7/26/2024','8:30 PM','6415635','The-Japanese-House-7-26-2024'],['The Lox','Franklin Music Hall','Philadelphia, PA','Sunday','8/11/2024','8:00 PM','6357150','The-Lox-8-11-2024'],['Goth Babe','Franklin Music Hall','Philadelphia, PA','Tuesday','9/3/2024','8:00 PM','6236549','Goth-Babe-9-3-2024'],['Built To Spill','Franklin Music Hall','Philadelphia, PA','Friday','9/6/2024','8:30 PM','6362191','Built-To-Spill-9-6-2024'],['Bikini Kill','Franklin Music Hall','Philadelphia, PA','Tuesday','9/10/2024','8:00 PM','6249699','Bikini-Kill-9-10-2024'],['Underoath','Franklin Music Hall','Philadelphia, PA','Thursday','9/26/2024','7:50 PM','6383912','Underoath-9-26-2024'],['Chromeo & The Midnight','Franklin Music Hall','Philadelphia, PA','Tuesday','10/1/2024','7:00 PM','6262551','Chromeo---The-Midnight-10-1-2024'],['Sofi Tukker','Franklin Music Hall','Philadelphia, PA','Wednesday','10/2/2024','7:00 PM','6420069','Sofi-Tukker-10-2-2024'],['Joe Pera','Franklin Music Hall','Philadelphia, PA','Friday','10/25/2024','7:00 PM','6051105','Joe-Pera-10-25-2024'],['Joe Pera','Franklin Music Hall','Philadelphia, PA','Friday','10/25/2024','9:45 PM','6090036','Joe-Pera-10-25-2024'],['Suki Waterhouse','Franklin Music Hall','Philadelphia, PA','Tuesday','12/10/2024','8:00 PM','6425084','Suki-Waterhouse-12-10-2024']],'The Electric Factory','http://www.ticketnetwork.com/ticket/The-Electric-Factory-events.aspx');